package com.ztgf.order.models.service;

import com.ztgf.order.models.bo.OrderCommodityAttrBO;
import com.ztgf.order.models.vo.OrderCommodityVO;

import java.util.List;

/**
 * author: chenyu.wang
 * date: 2020-06-23 10:36
 * Description:
 */

public interface IOrderCommodityService {

    /**
     * description: 查询商品价格
     * param: [list]
     * author: chenyu.wang
     * date: 2020-06-23
     * return: java.util.List<com.ztgf.order.models.vo.OrderCommodityVO>
     */
    List<OrderCommodityVO> queryGoodsPrice(List<OrderCommodityAttrBO> list);

    /**
     * description: 查询商品库存
     * param: [goodsId, attrIds]
     * author: chenyu.wang
     * date: 2020-06-24
     * return: java.lang.Integer
     */
    Integer queryGoodsInventoryNumber(Long goodsId, String attrIds);

    OrderCommodityVO queryGoodsPrice(OrderCommodityAttrBO orderCommodityAttrBO);
}
